﻿<ion-view view-title="授信还款" class="confirm_payment">
	<ion-nav-bar ng-class="baseclass">
		<ion-nav-back-button></ion-nav-back-button>
	</ion-nav-bar>

	<ion-content class="bg">
		<div class="list">
			<div class="item paymentframe margin-bottom-1" on-tap="openModal_payType()">
				<span class="fonttext1 width64">支付方式</span>
				<span class="fonttext2 padding-left-30">{{payName}}</span>
				<img src="./img/guilin/common/icon_right@2x.png" class="jt"/>
			</div>
			<div class="item item-input padding-0 numberframe margin-bottom-1" on-tap="openModal_bank()" ng-if="payName=='线下支付'">
				<span class="fonttext1 width64">对方账号</span>
				<div class="padding-left-30">
					<p class="fonttext2" ng-if="!input.bankObj.bank_name">请选择对方账号</p>
					<div ng-if="input.bankObj.bank_name">
						<p class="fonttext2">{{input.bankObj.bank_name}}</p>
						<p class="fonttext2">{{input.bankObj.bank_account}}</p>
						<p class="fonttext2">{{input.bankObj.receiver_name}}</p>
					</div>
				</div>
				<img src="./img/guilin/common/icon_right@2x.png" />
			</div>
			<div class="item padding-0 voucherframe margin-bottom-1" ng-if="payName=='线下支付'">
				<span class="fonttext1 left-zhang">付款凭证</span>
				<div class="padding-left-30 voucherimgfrmae">
					<img src="{{imgUrl?imgUrl:'./img/guilin/comment/addimg@2x.png'}}" on-tap="addImg()"/>
				</div>
			</div>
			<div class="item repaymentframe fonttext1">
				还款金额
			</div>
			<div class="item item-input moneyframe">
				<span class="unit">￥</span>
				<input type="number" class="moneyInput" ng-model="input.money" />
				<img src="./img/guilin/common/icon_delete_g@2x.png" ng-if="input.money" on-tap="clearinput()" />
			</div>
			<div class="item arrearsframe">
				<p class="fonttext3">您当前欠款{{data.debt_total}}元<span ng-if="data.confirm_amount">(已还待确认{{data.confirm_amount | currency:''}}元)</span></p>
				<p class="fonttext3" ng-if="payName=='预存款支付'">可用余额{{data.advance}}元</p>
			</div>
			
			<div class="item padding-0 btns margin-bottom-10" ng-class="{'red':issue_type==1}" ng-if="payName=='线下支付'" on-tap="offlinePay()">
				确认付款
			</div>
			<div class="item padding-0 btns margin-bottom-10" ng-class="{'red':issue_type==1}" ng-if="payName!='线下支付'" on-tap="openModal_confirm()">
				立即付款
				<input type="search" id="inputPass" ng-model="input.password" class="inputPassHide_pay"/>
			</div>
			
			<div class="item padding-0 textframe fonttext3" ng-if="payName=='线下支付'">
				线下支付需等待对方确认付款凭证
			</div>
		</div>
	</ion-content>
</ion-view>